<?php
/*
    Template Name: Default Blog
*/
get_header();

echo "\n<div class='left-bar'>\n";
dynamic_sidebar("left-sidebar");
echo "\n</div>\n";

echo "
<div class='posts'>
";

if (have_posts()) {
    while (have_posts()) {
        the_post(); 
        echo 
"           <h2><a href='";
        the_permalink();
        echo "' rel='bookmark'>";
        the_title();
        echo "</a></h2>
            <p>Written on ";
        the_time('F j, Y'); 
        echo " at ";
        the_time();
        echo ", by ";
        the_author();
        echo "</p>\n";
        the_content(__('Read more'));
        echo "
         <div class='postmeta'>
              <p>";
        comments_popup_link('No Comments', '1 Comment', '% Comments');
        echo "</p>
              <p>Category ";
        the_category(', ');
        echo " | Tags: ";
        the_tags(' ', ',', ' ');
        echo "</p>
         </div><!-- end .postmeta -->\n";
    } 
}

echo "
<div id='sidebar'>
";

dynamic_sidebar("blog-sidebar") ;

echo "
</div>
</div>
";
get_footer();
print_r("index.php")
?>
